package com.atguigu.gmall.product.controller;

import com.atguigu.gmall.product.service.Calculator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoggingController {
    @Autowired
    private Calculator calculator;

    @RequestMapping("testLogging")
    public String testLogging() {
        int res = calculator.add(2, 3);
        return res+"";
    }
}
